export function formatPermission (commonFiles) {
  let permission = []
  commonFiles.keys().forEach(key => {
    let arr = Object.keys(commonFiles(key))
    if (arr[0]) {
      let list = commonFiles(key)[arr[0]].permission
      if (list) {
        permission = permission.concat(list)
      }
    }
  })
  return permission
}
